Class NetworkImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.NetworkImpl
All Implemented Interfaces:
IPCObject, Network

public class NetworkImpl extends IPCObjectImpl implements Network
Information provided by the PKI file:

    \class Network
    
    \brief Network is the entry point for all device configurations in the network.  It retrieves devices.
    
    \example network()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getDevice

      public Device getDevice(String deviceName)
      Information provided by the PKI file:
      
          \brief Returns the device with the specified device name.
          
          \param deviceName, the device name of the device of interest.
          
          \return Device, the Device object with the specified device name.
          
              
      Specified by:
      getDevice in interface Network
      Parameters:
      deviceName - Takes in a parameter of deviceName
      Returns:
      Device Returns a Device
    • getDeviceAt

      public Device getDeviceAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the device at the specified index.
          
          \param index, the index of the device of interest.
          
          \return Device, the Device object at the specified index.
          
              
      Specified by:
      getDeviceAt in interface Network
      Parameters:
      index - Takes in a parameter of index
      Returns:
      Device Returns a Device
    • getDeviceCount

      public int getDeviceCount()
      Information provided by the PKI file:
      
          \brief Returns the number of devices in the network.
          
          \return int, the number of devices in the network.
          
              
      Specified by:
      getDeviceCount in interface Network
      Returns:
      int Returns a int
    • getLinkCount

      public int getLinkCount()
      Specified by:
      getLinkCount in interface Network
      Returns:
      int Returns a int
    • getLinkAt

      public Link getLinkAt(int index)
      Specified by:
      getLinkAt in interface Network
      Parameters:
      index - Takes in a parameter of index
      Returns:
      Link Returns a Link
    • getTotalDeviceAttributeValue

      public double getTotalDeviceAttributeValue(String attributeName)
      Specified by:
      getTotalDeviceAttributeValue in interface Network
      Parameters:
      attributeName - Takes in a parameter of attributeName
      Returns:
      double Returns a double